[index]

DoMenu Message

Syntax

on doMenu [<menuItem> [,<menuName>]]
end doMenu Sent to the current card

Description

Oracle Media Objects generates the doMenu message whenever the user selects an item from a menu. Every doMenu handler must contain a menu command so that the doMenu message continues along the message hierarchy until it reaches Oracle Media Objects and is executed. The optional <menuItem> parameter identifies the name of the item that was selected, and the optional <menuName> parameter identifies the name of the menu from which the item was selected.

Notes

Examples

Add the following handler to the script of a card. This handler displays a dialog box that displays the name of the chosen command whenever the user selects an item from a menu. on doMenu the_item, the_menu pass doMenu end doMenu on doMenu the_item, the_menu quote && "menu" with "OK" pass doMenu
This text has been mechanically extracted from the Oracle Media Objects 1.0.4.9 MediaTalk Reference, © 1995 Oracle Corporation, and is provided here solely for educational/historical purposes.